package com.toilet.easyvideofx.domain;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

/**
 * @TableName download_file_record
 */
public class DownloadFileRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 文件md5值
     */
    private String fileMd5;

    /**
     * 下载进度
     */
    private Integer downloadProgress;

    /**
     * 服务器的路径
     */
    private String fileNetUrl;

    /**
     * 本地路径
     */
    private String fileLocalUrl;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 修改时间
     */
    private String updateTime;

    public String getFileMd5() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
    }

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     *
     */
    public String getFileName() {
        return fileName;
    }

    /**
     *
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     *
     */
    public Integer getDownloadProgress() {
        return downloadProgress;
    }

    /**
     *
     */
    public void setDownloadProgress(Integer downloadProgress) {
        this.downloadProgress = downloadProgress;
    }

    /**
     *
     */
    public String getFileNetUrl() {
        return fileNetUrl;
    }

    /**
     *
     */
    public void setFileNetUrl(String fileNetUrl) {
        this.fileNetUrl = fileNetUrl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DownloadFileRecord that = (DownloadFileRecord) o;
        return Objects.equals(id, that.id) && Objects.equals(fileName, that.fileName) && Objects.equals(fileMd5, that.fileMd5) && Objects.equals(downloadProgress, that.downloadProgress) && Objects.equals(fileNetUrl, that.fileNetUrl) && Objects.equals(fileLocalUrl, that.fileLocalUrl) && Objects.equals(createTime, that.createTime) && Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, fileName, fileMd5, downloadProgress, fileNetUrl, fileLocalUrl, createTime, updateTime);
    }

    @Override
    public String toString() {
        return "DownloadFileRecord{" +
                "id=" + id +
                ", fileName='" + fileName + '\'' +
                ", fileMd5='" + fileMd5 + '\'' +
                ", downloadProgress=" + downloadProgress +
                ", fileNetUrl='" + fileNetUrl + '\'' +
                ", fileLocalUrl='" + fileLocalUrl + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }

    /**
     *
     */
    public String getFileLocalUrl() {
        return fileLocalUrl;
    }

    /**
     *
     */
    public void setFileLocalUrl(String fileLocalUrl) {
        this.fileLocalUrl = fileLocalUrl;
    }

    /**
     *
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     *
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     *
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     *
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

}